package org.joseph.springcloud.config;

import feign.Logger;
import feign.RequestInterceptor;
import org.joseph.springcloud.interceptor.FeignInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


public class FeignConfiguration {

    @Bean
    Logger.Level feignLoggerLevel() {
        return Logger.Level.FULL;
    }

    @Bean
    public RequestInterceptor feignInterceptor(){
        return new FeignInterceptor();
    }
}
